use crate::db::connector;
use crate::models::project;
use sea_orm::Set;

pub async fn create_project() {
    let p = project::ActiveModel {
        creator_id: Set("001358-455".to_string()),
        creator_name: Set("王博".to_string()),
        ..Default::default()
    };
    let res = connector::create("app", p).await;
    match res {
        Ok(model) => {
            println!("{:?}", model);
        }
        Err(err) => {
            println!("{:?}", err);
        }
    }
}
